<!DOCTYPE html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js文字向左无缝滚动</title>
</head>
<body>
<style type="text/css">
.qimo8{ overflow:hidden; width:100%;}
.qimo8 .qimo {/*width:99999999px;*/width:8000%; height:30px;}
.qimo8 .qimo div{ float:left;}
.qimo8 .qimo ul{float:left; height:30px; overflow:hidden; zoom:1; }
.qimo8 .qimo ul li{float:left; line-height:30px; list-style:none;}
.qimo8 li a{margin-right:10px;color:#444444;}
</style>
            <div id="demo" class="qimo8">
              <div class="qimo">
                <div id="demo1">
                  <ul>
                      <li><a href='/office/194/46163.htm' >回收站里的文件删除了怎么恢复</a>
                      <a href='/office/194/46163.htm' >回收站里的文件删除了怎么恢复</a>
                      <a href='/office/194/46163.htm' >回收站里的文件删除了怎么恢复</a>
                      <a href='/office/194/46163.htm' >回收站里的文件删除了怎么恢复</a>
                      <a href='/office/194/46163.htm' >回收站里的文件删除了怎么恢复</a>
                      <a href='/office/194/46163.htm' >回收站里的文件删除了怎么恢复</a>
                      </li>
                  </ul>
                </div>
                <div id="demo2"></div>
              </div>
              </div>
  <script type="text/javascript">
      var demo = document.getElementById("demo");
      var demo1 = document.getElementById("demo1");
      var demo2 = document.getElementById("demo2");
      demo2.innerHTML=document.getElementById("demo1").innerHTML;
      function Marquee(){
          if(demo.scrollLeft-demo2.offsetWidth>=0){

              demo.scrollLeft-=demo1.offsetWidth;
              console.log(111111111111111111111111111111111)
            }
          else{

              demo.scrollLeft++;
            }
        }
      var myvar=setInterval(Marquee,30);
      // demo.onmouseout=function (){myvar=setInterval(Marquee,30);}
      // demo.onmouseover=function(){clearInterval(myvar);}
  </script>
</body>
</html></td>
	  </tr>
	</table>